﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elements
{
    public abstract class LinkBaseV5
    {
        /// <summary>
        /// 连线ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 连线开始形状
        /// </summary>
        public ShapeBaseV5 StartShape { get; set; }
        /// <summary>
        /// 连线结束形状
        /// </summary>
        public ShapeBaseV5 EndShape { get; set; }

        /// <summary>
        /// 连线开始形状的连接点
        /// </summary>
        public ShapeBaseV5.ShapeLinkPoints StartShapeLinkPoint { get; set; }

        /// <summary>
        /// 连线结束形状的连接点
        /// </summary>
        public ShapeBaseV5.ShapeLinkPoints EndShapeLinkPoint { get; set; }

        /// <summary>
        /// 连线的颜色
        /// </summary>
        public Color BackgroundColor { get; set; }

        /// <summary>
        /// 绘制连线
        /// </summary>
        /// <param name="g"></param>
        public abstract void Draw(Graphics g);

    }

}
